package com.ruicar.afs.cloud.afscase.loanapprove.vo;

import com.ruicar.afs.cloud.bizcommon.business.entity.FinFinancingItems;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author yk.Li
 * @Date 2020/8/22
 * @Description
 */
@Data
public class FinFinancingItemsVO extends FinFinancingItems {
    /**
     * 实际成交价格
     */
    private BigDecimal realFinanceItemAmt;
    private List<FinFinancingItemsVO> children;
    /**
     * 是否合格
     */
    private boolean qualified;

    public void checkStatus(){
        if(realFinanceItemAmt.compareTo(this.getFinanceItemAmt())==-1){
            this.qualified=false;
        }else{
            this.qualified=true;
        }
    }
}
